var app = getApp();
var Api = require("../../utils/api.js");
console.log(Api.getImg('images/xxx.jpg'));
Page({
  data:{//初始化数据
    name: "张三",
    age: "30",
    array: [{ msg: '1' }, { msg: '2' }, { msg: '3' }]
  },
  onLoad: function () {
    console.log('onLoad')
  },
  onReady: function () {
    console.log('onReady')
  },
  onShow: function (){

  },
  onHide: function () {

  },
  onUnload: function () {

  },
  run:function(){
    this.setData({
      name:"李四"
    })
  }
})